package com.maixy.dailydemo.bloom;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName BloomController
 * @Description TODO
 * @Date 2021/7/19 21:32
 * @Author maixy
 */
@RestController
@RequestMapping("/bloom")
public class BloomController {

    @Autowired
    private BloomService bloomService;

    @GetMapping("/registered/{id}")
    public String registered(@PathVariable("id") Integer id) {
        return bloomService.registered(id);
    }
}
